package org.richin.servlet.Filter.util;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.richin.servlet.util.ConvertSpecialCharacterServletRequestWrapper;
/**
 * 过滤request中的特殊字符
 * @author Administrator
 *
 */
public class SpecialCharacterFilter implements Filter {

	public void destroy() {
		// TODO Auto-generated method stub

	}

	public void doFilter(ServletRequest servletrequest, ServletResponse servletresponse, FilterChain chain)
			throws IOException, ServletException {
		ConvertSpecialCharacterServletRequestWrapper requestWrapper = (ConvertSpecialCharacterServletRequestWrapper) servletrequest;
		chain.doFilter(requestWrapper, servletresponse);

	}

	public void init(FilterConfig filterconfig) throws ServletException {
		// TODO Auto-generated method stub

	}

}
